<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta content="text/html;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta http-equiv ="Pragma" content = "no-cache"/>
	<meta http-equiv="Cache-Control" content="no cache" />
	<meta http-equiv="Expires" content="0" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link href="../../plugins/pace/themes/pink/pace-theme-flash.css" rel="stylesheet"/>
	<script src="../../plugins/pace/pace.min.js"></script>
	<link href="../../plugins/contextMenu/jquery.contextMenu.min.css" rel="stylesheet"/>
	<link href="../../plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
	<link rel="stylesheet" href="../../plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"/>
	<link href="../../plugins/toastr/toastr.min.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" media="all"/>
	<script type="text/javascript" src="../../plugins/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="../../plugins/encrypt/jsencrypt.min.js"></script>
	<script src="../../plugins/contextMenu/jquery.contextMenu.min.js"></script>
	<script type="text/javascript" src="../../plugins/ztree/js/jquery.ztree.all.min.js"></script>
	<script src="../../plugins/toastr/toastr.min.js"></script>
	<script src="../../plugins/echarts/echarts.min.js"></script>
	<link rel="stylesheet" type="text/css" href="../../css/fs.css?v=2.0.0" media="all"/>
	<script type="text/javascript" src="../../plugins/layui/layui.js"></script>
  <script type="text/javascript" src="../../plugins/tinymce/tinymce.min.js"></script>
	<script type="text/javascript" src="../../plugins/tinymce/jquery.tinymce.min.js"></script>
	<script type="text/javascript" src="../../plugins/frame/js/fsDict.js?v=2.0.0"></script>
	<script type="text/javascript" src="../../plugins/frame/js/fs.js?v=2.0.0"></script>
	<script type="text/javascript" src="../../plugins/frame/js/frame.js?v=2.0.0"></script>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space10">
			 <div class="layui-col-md12">
				<div class="layui-card">
          <div class="layui-card-header">加密/执行成功回调</div>
	    		<div class="layui-card-body">
						<form class="layui-form" id="test1">
							<div class="layui-form-item layui-form-text">
						    <label class="layui-form-label">密码</label>
						    <div class="layui-input-inline">
						      <input id="newPassword" type="password" name="password" lay-verType="tips" required="" lay-verify="required|length" placeholder="请输入密码" minLength="6" maxLength="30" autocomplete="off" class="layui-input fsCrypt"/>
						    </div>
						    <div class="layui-input-inline">
								 <button class="layui-btn" lay-submit lay-filter="test1" requestSuccessCallback="test" url="/fsbus/DEMO1002">提交</button>
						    </div>
						  </div>
						</form>
	    		</div>
	    	</div>
			</div>
			<div class="layui-col-md12">
			 <div class="layui-card">
				 <div class="layui-card-header">页面加载成功后回调</div>
				 <div class="layui-card-body">
					 <form class="layui-form" id="test2">
						 <div class="layui-form-item layui-form-text">
							 <label class="layui-form-label">昵称</label>
							 <div class="layui-input-inline">
								 <input type="text" id="username" name="username" autocomplete="off" disabled="disabled" class="layui-input"/>
							 </div>
						 </div>
					 </form>
				 </div>
			 </div>
		 </div>
    </div>
		</div>
	</div>
<script type="text/javascript">
	layui.fsRequestSuccessCallback.test = function(result,_this,fsCommon){
		console.log(result);
		fsCommon.successMsg("回调成功1");
	}
	layui.fsCallback.form.test2 = function(_this){
		console.log(_this);
		$("#username").val("fallsea");
		fsCommon.successMsg("回调成功2");
	}
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?d506ef94f6ea5b1b6824728a5e476535";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
